<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>分析结果</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 40px; background-color: #f5f5f5; }
        .container { max-width: 1000px; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        h1 { color: #333; text-align: center; }
        .result-section { margin: 20px 0; padding: 20px; border: 1px solid #eee; border-radius: 5px; }
        .original-text { background: #f8f9fa; padding: 15px; border-radius: 5px; max-height: 200px; overflow-y: auto; }
        .analysis-result { background: #e7f3ff; padding: 15px; border-radius: 5px; white-space: pre-wrap; }
        .btn { background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; }
    </style>
</head>
<body>
<div class="container">
    <h1>简历分析结果</h1>
    <p>文件: <strong th:text="${fileName}"></strong></p>

    <div class="result-section">
        <h3>原始文本内容：</h3>
        <div class="original-text" th:text="${originalText}"></div>
    </div>

    <div class="result-section">
        <h3>AI分析结果：</h3>
        <div class="analysis-result" th:text="${analysisResult}"></div>
    </div>

    <a href="/interview" class="btn">返回上传页面</a>
</div>
</body>
</html>